export default class bounced {
    palette(prompt,slogan,kg,integral,crack) {
        return ({
            width: '580rpx',
            height: '880rpx',
            background: 'rgba(0,0,0,0)',
            views: [
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/bouncedBg.png',
                    css: {
                      width: '580rpx',
                      height: '762rpx',
                      top: '118rpx'
                    },
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/logo.png',
                    css: [{
                      width: '168rpx',
                      height: `${logoheight}rpx`,
                    },common]
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/bouncedItemBg.png',
                    css: [{
                      width: '536rpx',
                      height: '592rpx',
                      top: `${logoheight + 20}rpx`,
                    },common]
                },
                {
                    type: 'image',
                    url: crack,
                    css: {
                      width: '315rpx',
                      height: '278rpx',
                      top: `${logoheight + 135}rpx`,
                      right: '110rpx' 
                    },
                },
                // {
                //     type: 'text',
                //     text: prompt,
                //     css: {
                //         fontSize: '48rpx',
                //         top: `${logoheight + 245}rpx`,
                //         left: '95rpx',
                //         color:'#db3842',
                //         shadow: '5rpx 0rpx 5rpx #fa9007',
                //     }
                // },
                {
                    type: 'text',
                    text: prompt,
                    css: {
                        fontSize: '48rpx',
                        top: `${logoheight + 240}rpx`,
                        left: '95rpx',
                        color:'#fff',
                        shadow: '0rpx 3rpx 2rpx #db3842'
                    }
                },
                // {

                //     type: 'text',
                //     text: '你'+ slogan +'了',
                //     css: {
                //         fontSize: '80rpx',
                //         top: `${logoheight + 215}rpx`,
                //         right: '80rpx',
                //         color:'#fa9007',
                //     }
                // },
                {
                    type: 'text',
                    text: '你'+ slogan +'啦',
                    css: {
                        fontSize: '80rpx',
                        top: `${logoheight + 210}rpx`,
                        right: '80rpx',
                        color:'#ffff00',
                        shadow: '0rpx 3rpx 2rpx #fa9007',
                    }
                },
                // {
                //     type: 'text',
                //     text: '你'+ slogan +'了' + kg + 'KG',
                //     css: [{
                //         fontSize: '72rpx',
                //         top: `${logoheight + 325}rpx`,
                //         color:'#db3842',
                //     },common]
                // },
                {
                    type: 'text',
                    text: '你'+ slogan +'了' + kg + 'KG',
                    css: [{
                        fontSize: '72rpx',
                        top: `${logoheight + 320}rpx`,
                        color:'#fff',
                        shadow: '0rpx 3rpx 2rpx #db3842'
                    },common]
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/rectBg.png',
                    css: [{
                      width: '434rpx',
                      height: '96rpx',
                      top: `${logoheight + 415}rpx`,
                    },common],
                },
                {
                    type: 'text',
                    text: integral,
                    css:[{
                        fontSize: '30rpx',
                        top: `${logoheight + 440}rpx`,
                        color:'#ff5653',
                    },common]
                },
                {
                    type: 'image',
                    url: 'https://jzj.freei.cc/Uploads/ce/bouncedItemBtn.png',
                    css: [{
                      width: '284rpx',
                      height: '94rpx',
                      top: `${logoheight + 520}rpx`,
                    },common],
                },
                {
                    type: 'text',
                    text: '一个有决心的人，将会找到他的道路',
                    css: [{
                        fontSize: '24rpx',
                        bottom: '45rpx',
                        color:'#fff',
                    },common]
                },
            ]
        });
    }
}

const logoheight = 168;
const center = 290;
const common = {
    left: `${center}rpx`,
    align: 'center'
};